<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\exception;

use rpo\http\exception\interfaces\AbstractClientException;
use \Exception;

/**
 * The server understood the request, but is refusing to fulfill it.
 * <p>
 * Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes
 * to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity.
 * If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.</p>
 * @author		João Batista Neto
 * @final
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 * @see			NotFountException
 */
final class ForbiddenException extends AbstractClientException {
	/**
	 * Constroi o objeto da exceção
	 * @param string $message A exceção
	 * @param Exception $parent
	 */
	public function __construct( $message , Exception $previous = null ){
		parent::__construct( $message , 403 , $previous );
	}
}